<?php
$this->load->helper('form');
$attributes = array('class' => 'addForm','id' => 'addForm');
$gendersList = array('M'=>'Male', 'F'=>'Female');
?>

<script type="text/javascript">
<!-- Begin HTML comment that hides the script.
	window.addEvent('domready', function() { myCal = new Calendar({ dob: 'd/m/Y' }); });
// End HTML comment that hides the script. -->
</script>

<div class="addForm">
	
	<h3>User Registration</h3>
	
	<?= form_open('auth/register', $attributes); ?>
		<fieldset>
		
		<div class="row">
			<label for='name'>User name:</label>
			<input type="text" name="user_name" id="user_name" value="" maxlength="50" size="20" />
		</div>

		<div class="row">
			<label for='password'>Password:</label>
			<input type="text" name="password" id="password" value="" maxlength="50" size="20" />
		</div>		
		
		<div class="row">
			<label for="title">Title:</label>				
			<?= form_dropdown('title', $titlesList); ?>
		</div>
		
		<div class="row">
			<label for="gender">Gender:</label>
			<?= form_dropdown('gender', $gendersList); ?>
		</div>

		
		<div class="row">
			<label for='dob'>Date of birth:</label>
			<input id="dob" name="dob" type="text" maxlength="255" size="20"  />
		</div>
		
		
		<?= form_submit('submit', 'Add Game', 'id="submit"'); ?>
		
		</fieldset>
	<?= form_close(); ?>
</div>
